/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - Op1
 * <p>Powered by webrx On 2022-08-29 16:57:28
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Op1 {
    public static void main(String[] args) {
        System.out.println(2 + 3);
        System.out.println(2 - 3);
        System.out.println(2 * 3);//
        System.out.println(12 / 6); //求整商
        System.out.println(12 % 6);//求余数

        System.out.println("hello" + "，李四");

        int a = 10;
        int b = 3;
        System.out.println(a % b);
        System.out.println(5 / 2);
        System.out.println(1.0 * 5 / 2);
        System.out.println(a / b * 1.0);
        System.out.println("-------------------------------------");
        //++ --
        int c = 5;
        ++c;
        int d = c++;//d = 6  c 7;
        System.out.println(++c);//8
        System.out.println(d++);//6
        System.out.println(d);//7

        int t = 5;
        System.out.println(t++);
        System.out.println(t);

        var dd = 1.5;
        //dd++; //dd+=1;
        //dd += 1;
        dd = dd + 1;
        System.out.println(++dd);
        System.out.println(dd--);
        System.out.println(dd);
    }
}
